import request from "@/router/axios";

export const getList = (current, size, params) => {
  return request({
    url: "/api/hg-quality/reviewtype/list",
    method: "get",
    params: {
      current,
      size,
      ...params
    }
  });
};

export const save = data => {
  return request({
    url: "/api/hg-quality/reviewtype/save",
    method: "post",
    data
  });
};

export const update = data => {
  return request({
    url: "/api/hg-quality/reviewtype/update",
    method: "post",
    data
  });
};

export const getDetail = id => {
  return request({
    url: "/api/hg-quality/reviewtype/detail",
    method: "post",
    params: { id }
  });
};

export const remove = ids => {
  return request({
    url: "/api/hg-quality/reviewtype/remove",
    method: "post",
    params: { ids }
  });
};
